package com.example.java250806_spring_ioc_demo.Facade;

public class FacadeLight {
    private BathroomLight bathroomLight;
    private BedroomLight bedroomLight;
    private LivingroomLight livingroomLight;

    public FacadeLight(){
        this.bathroomLight = new BathroomLight();
        this.bedroomLight = new BedroomLight();
        this.livingroomLight = new LivingroomLight();
    }
    public void lightOn(){
        bathroomLight.on();
        bedroomLight.on();
        livingroomLight.on();
    }
    public void lightOff(){
        bathroomLight.off();
        bedroomLight.off();
        livingroomLight.off();
    }
}
